package jnBase.view
{
	import jnBase.Data;
	
	import ui.tools.wap.TwoTitleUI;
	
	public class TwoStepControl extends TwoTitleUI
	{
		public var value:int;
		private var des:String;
		public function TwoStepControl($lab:String,$i:int)
		{
			super();
			value=$i;
			des=$lab;
		}
		override public function onAwake():void
		{
			// TODO Auto Generated method stub
			super.onAwake();
			var list:Array=des.split("*");
			if(list.length>1){
				icon_3d.visible=true;
				icon_normal.visible=false;
			}
			else{
				icon_3d.visible=false;
				icon_normal.visible=true;
			}
			titleName.label=list[0];
			this.name=value+"";
			if(value==Data.currSonStep){
				//						btn.selected=true;
				this.titleName.selected=true;
				SceneToolsWAP.getInstance().currSonStepBtn=this;
			}
			else{
				titleName.selected=false;
			}
			if(value==Data.stepList[Data.currStep].value.length-1 && Data.currStep==Data.stepList.length-1){
				xia.visible=false;
			}
		}
	}
}